<%-- 
    Document   : header
    Created on : 29/11/2011, 10:32:32 PM
    Author     : RENZO
--%>

<%@page import="params.ParamsConf"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>SpeedLight - Cielsa Contratistas</title>
    <link href="images/iconobl.png" type="image/x-icon" rel="shortcut icon" />
    <link href="Styles/style-menu.css" rel="stylesheet" type="text/css" />
    <link href="Styles/style.css" rel="stylesheet" type="text/css" />
    <link href="Styles/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
    <link href="Styles/fullcalendar.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="js/jquery-1.7.js"></script>
    <script language="javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
    <script language="javascript" src="js/fullcalendar.js"></script>
    <script type="text/javascript">
        function mainmenu(){
        $(" #nav ul ").css({display: "none"});
        $(" #nav li").hover(function(){
                $(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).slideDown(400);
                },function(){
                        $(this).find('ul:first').slideUp(400);
                });
        };
        $(document).ready(function(){
                mainmenu();
                var dates = $( "#from, #to" ).datepicker({
                            defaultDate: "+1w",
                            changeMonth: true,
                            numberOfMonths: 1,
                            onSelect: function( selectedDate ) {
                                    var option = this.id == "from" ? "minDate" : "maxDate",
                                            instance = $( this ).data( "datepicker" ),
                                            date = $.datepicker.parseDate(
                                                    instance.settings.dateFormat ||
                                                    $.datepicker._defaults.dateFormat,
                                                    selectedDate, instance.settings );
                                    dates.not( this ).datepicker( "option", option, date );
                            }
                });
        });
    </script>
</head>
<body>
    <div id="baseContent">
    <div id="topPan">
        <table id="tableMenuHeader">
            <tr>
                <td id="logoHeader"><a href="index.jsp"><img src="images/speedlightlogo.png" title="Logo Cielsa" alt="Logo Cielsa" width="204" height="57" border="0"/></a></td>
                <% if(request.getRequestURL().toString().equals(ParamsConf.URL+"login.jsp")){ %>
                <% }else{ %>
                    <td class="menuHeader"><a href="ReporteGeneral.jsp;" >Reportes</a></td>
                    <td id="cerrarSesionHeader" class="menuHeader"><a href="login.jsp" >Cerrar Sesion<br/><span>Renzo Lizarraga</span></a></td>
                <% } %>
            </tr>
        </table>
    </div>